<% note = notes.first %>
<div class="vista_toolbar">
  <ul>
    <%= toolbar_add 'muistilappu', 'notes', customer %>
    <%= toolbar_edit 'muistilappua', 'notes', note, customer %>
    <%= toolbar_delete_selected 'notes' %>
  </ul>
</div>
<%form_remote_tag :url => destroy_selected_notes_url, :confirm => 'Haluatko varmasti poistaa muistilapun?', :before => "spinnerOn('notes');", :complete => "spinnerOff('notes');", :method => :delete, :html => {:id => 'notes_form'}do %><%if notes.empty? %>
    <div class="scrollable" style="height:11em">
      <div class="container">
        Ei muistilappuja.
      </div>
    </div>
  <%else %>
    <div class="scrollable" style="height:11em">
      <div class="container">
        <input type="hidden" name="selected" value="<%=note.id %>"/>
               <div class="content">
        <%=note.content %>
      </div>
      <div style="clear:both">
      </div>
    </div>
    </div>
  <%end %>
<%end %>